<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box {
            height: 100px;
            border: 10px solid #000;
            padding: 10px;
            display: -webkit-box;
            /* -webkit-box-orient: vertical; */
            /* -webkit-box-direction: reverse; */
            font-size: 20px;
            color: #fff;
            -webkit-box-pack: justify;
        }

        .box div {
            height: 100px;
            background: red;
            width: 100px;
            border: 1px solid #fff;
        }
    </style>
</head>
<body>
    <div class="box">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
    </div>  
</body>
</html>